/*
 * @Author: 谢小康 2170673706@qq.com
 * @Date: 2024-01-30 13:46:05
 * @LastEditors: 谢小康 2170673706@qq.com
 * @LastEditTime: 2024-01-30 13:47:40
 * @FilePath: \My-bolg\My_Blog\src\api\shuoshuo.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from "./index.js"
/* 获取说说 */
const getshuoshuo = (data)=>{
    return new Promise((resolve, reject) => {
        http.post("/api/shuoshuo/getshuoshuo",data).then(res =>{
            resolve(res)
        })
    })
}
/* 获取置顶说说 */
const gettopshuoshuo = ()=>{
    return new Promise((resolve, reject) => {
        http.get("/api/shuoshuo/gettopshuoshuo").then(res =>{
            resolve(res)
        })
    })
}
const addstrs = (data)=>{
    return new Promise((resolve, reject) => {
        http.post("/api/shuoshuo/addstrs",data).then(res =>{
            resolve(res)
        })
    })
}

export {
    getshuoshuo,
    gettopshuoshuo,
    addstrs,
   

}